package BanyuanClub.Work.Story.Four;

public class FAccount {
    private String idCard;
    private String password;
    private int Balance;
    private int t;
    private boolean accountFreeze=true;

    //冻结
    public void Dong(){
        setAccountFreeze(false);
}

    public int getT() {
        return t;
    }

    public void setT(int t) {
        this.t = t;
    }

    public boolean getAccountFreeze(){
        return accountFreeze;
    }

    public void setAccountFreeze(boolean accountFreeze) {
        this.accountFreeze = accountFreeze;
    }

    public FAccount(String idCard, String password, int balance) {
        this.idCard = idCard;
        this.password = password;
        Balance = balance;
    }

    public FAccount(boolean accountFreeze) {
        this.accountFreeze = accountFreeze;
    }


    public boolean isAccountFreeze() {
        return accountFreeze;
    }


    @Override
    public String toString() {
        return "FAccount{" +
                "idCard='" + idCard + '\'' +
                ", password='" + password + '\'' +
                ", Balance=" + Balance +
                ", accountFreeze=" + accountFreeze +
                '}';
    }



    public int getBalance() {
        return Balance;
    }

    public void setBalance(int balance) {
        Balance = balance;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
